<?php
		$iorderID=$_POST['iorderID'];
		$servername = "127.0.0.1";
		$username = "root";
		$password = "";
		$dbname = "OnlineDeliverOrderSystem_schema";
		$con=mysqli_connect($servername,$username,$password,$dbname);
		// 检测连接
		if (mysqli_connect_errno())
		{
		    echo "连接失败: " . mysqli_connect_error();
		}
		
		$updateSql=sprintf("UPDATE `onlinedeliverordersystem_schema`.`order` SET `status` = '已接受' WHERE `order`.`ID` = '%s';",$iorderID);
		mysqli_query($con,$updateSql);
		echo 0;
		mysqli_close($con);
?>